#ifndef PUSHBEHAVIOR_H
#define PUSHBEHAVIOR_H

#include "Board.h"
#include "GameObject.h"
#include "Direction.h"
#include "GameBehavior.h"
#include "MoveBehavior.h"
#include "GameStep.h"
#include "Activatable.h"

class PushBehavior: public GameBehavior
{
public:
	PushBehavior();
	virtual ~PushBehavior();

	void SetActivator(GameObject* pusher);
	void SetPushDirection(const Direction& direction);
	virtual void GenerateSteps(Board& board);
	virtual void Execute();

protected:

private:
	void Clear();
	
	Direction pushDirection;
	std::list<GameStep*> steps;
	MoveBehavior moveBehavior;
	GameObject* activatableObject;
	Activatable* activatableInterface;
};

#endif //PUSHBEHAVIOR_H
